<?php
namespace App\Services;

use App\Models\MakeVideoModel;
use Framework\BaseService;
use GuzzleHttp\Client;

class MakeVideoService extends BaseService
{

    public function conflateVideo($content,$file,$language,$is_captions,$is_medium,$time)
    {

        $video = '';
        //TODO  需要完善  请求java  生成视频
        $model = new MakeVideoModel();
        $model->image = $file;
        $model->content = $content;
        $model->language = $language;
        $model->is_captions = $is_captions;
        $model->is_medium = $is_medium;
        $model->time = $time;
        $model->video = $video;
        $model->saveOrFail();
        return $video;
    }

}
